//
//  HFCollectionViewItem.m
//  HocusFocus
//
//  Created by Drew Davidson on 6/10/10.
//  Copyright 2010 Apple Inc. All rights reserved.
//

#import "HFOrnamentCollectionViewItem.h"
#import "HFOrnamentView.h"

@implementation HFOrnamentCollectionViewItem

-(void)setSelected:(BOOL)flag
{
    [super setSelected:flag];
    
    // tell the view that it has been selected
    [(HFOrnamentView *)[self view] setSelected:flag];
    [[self view] setNeedsDisplay:YES];
}

- (void)setRepresentedObject:(id)object
{
    [(HFOrnamentView *)[self view] setOrnament:(HFOrnament *)object];
    [super setRepresentedObject:object];
}

- (id)copyWithZone:(NSZone *)zone
{
    [NSBundle loadNibNamed:@"HFOrnamentView" owner:self];
    return [super copyWithZone:zone];
}

@end
